<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<title>体检预约服务平台 - 医通在线</title>
	<link href="templates/css/global.css" rel="stylesheet" type="text/css" />
	<link href="templates/css/agency.css" rel="stylesheet" type="text/css" />
    <script src="templates/js/form.js" type="text/javascript"></script>
    <script src="templates/js/common.js" type="text/javascript"></script>
    <script src="templates/js/append.js" type="text/javascript"></script>
<script language="javascript">
function submit_payoff() {
    $("#appendform").submit();
}
</script>
    <meta content="" name="Keywords">
	<meta name="description" content="" />
	<!--[if IE 6]>
	<script src="templates/js/ddpng.js" type="text/javascript"></script>
	<script type="text/javascript">DD_belatedPNG.fix('.ddpng');</script>
    <![endif]-->
</head>
<body>

<!--header st-->
<{include file="../templates/$newtpl/header.html"}>
<FORM style="margin-top:5px" action="/index.php?action=cart"  method="post" enctype="application/x-www-form-urlencoded" name="appendform" target="_self" id="appendform" >

<div class="row mb10 center_layout fix">
	<{include file="../templates/$newtpl/left.html"}>
	<div class="grid0 grid770">
		<div class="main_con main_nobd">
			<div class="subline subline_2 fix"><h4>订单确认支付</h4></div>

            <!-- 体检 -->
			<table class="com_table mb10">
				<thead>
                    <tr>
						<th width="39" colspan=10 style="text-align: left;padding-left:15px">体检订单</th>
					</tr>
					<tr>
						<th width="80">订单号</th>
						<th width="60">体检人</th>
						<th width="130">套餐</th>
                        <th width="70">加项</th>
						<th width="50">城市</th>
						<th width="100">机构</th>
						<th width="80">门店</th>
						<th width="90">预约日</th>
						<th>累计金额</th>
					    <th>操作</th>
					</tr>
				</thead>
				<{if $info|@count neq 0}>
				<{foreach from=$info item=ac_info}>
                <{if $ac_info.source !=3}>
                <{if $ac_info.so_type !=7}>
				<tbody>
					<tr>
						<td><input type="checkbox" onClick="setprice()" ss='<{$ac_info.order_action_price}>' checked="checked" name="checkbox_value[]" value="<{$ac_info.order_id}>" /><{$ac_info.order_id}></td>
						<td>&nbsp;<{$ac_info.appendinfo.append_name}></td>
						<td>&nbsp;<{$ac_info.product.product_name}>
							</td>
                        <td>&nbsp;<{foreach from=$ac_info.jx key=key item=item name=store}>
									 <{$item}>&nbsp;&nbsp;&nbsp;
						          <{/foreach}>
                        </td>
						<td>&nbsp;<{$ac_info.city.region_name}></td>
						<td>&nbsp;<{$ac_info.supplier}></td>
						<td>&nbsp;<{$ac_info.store}></td>
						<td>&nbsp;<{$ac_info.appendinfo.append_yytime}></td>
						<td class="option">&nbsp;¥<{$ac_info.order_action_price}></td>
					    <td class="option"><a href="###" onclick="cancle_order('<{$ac_info.order_id}>');" class="">取消</a></td>
					</tr>
				</tbody>
                <{/if}>
                <{/if}>
				<{/foreach}>
				<{else}>
                     <tbody>
                        <tr>
                            <td bgColor=#ffffff colspan="6" height="30px" >&nbsp;&nbsp;暂无待支付记录！</td>
                        </tr>
                     </tbody>
	            <{/if}>
			</table>
            <!-- 体检 -->

            <!-- 洗牙订单列表 -->
           <{*if isset($userinfo.user_gh) && $userinfo.user_enterprise_code=='MSD' && in_array($userinfo.user_gh, array('ET21014') )  *}>
           <{if isset($userinfo.user_gh) && $userinfo.user_enterprise_code=='MSD'}>
			<table class="com_table  mb10">
				<thead>
                     <tr>
						<th width="39" colspan=8 style="text-align: left;padding-left:15px">洗牙订单</th>
					</tr>
					<tr>
						<th width="39">&nbsp;</th>
						<th width="70">订单号</th>
						<th width="140px">套餐项目</th>
						<th width="100">预约人</th>
						<th width="90">订单金额</th>
						<th width="120px">下单时间</th>
						<th width="80px">状态</th>
						<th>操作</th>
					</tr>
				</thead>

				<{if $info|@count neq 0}>
				<{foreach from=$info item=ac_info}>
                <{if $ac_info.source==3}>
				<tbody>
					<tr>
						<td><{if $ac_info.status == 1}><input type="checkbox" name="checkbox_value[]" value="<{$ac_info.order_id}>" checked="checked"/><{/if}></td>
						<td><{$ac_info.order_id}></td>
						<td>
						<{if $ac_info.so_type == 2}>
						<font color="#FF0000">加项订单</font>
						<{else}>
							        <{if $ac_info.source == 3}>
                                    <a href="/kouqiang" target="_blank"><{$ac_info.product.product_name}></a>
                                <{else}>
								    <a href="<{$ac_info.p_url}>" target="_blank"><{$ac_info.product.product_name}></a>
                                <{/if}>

						<{/if}>
						<{if $ac_info.jx_list!=''}>
						<br />
						<font color="">[加项]：</font>

						<{if $ac_info.jx_list|@count neq 0}>
							<{foreach from=$ac_info.jx_list key=key item=item name=store}>
							     <{$item}><{if !$smarty.foreach.store.last}>,<{/if}>
			                <{/foreach}>
						      <{/if}>
						   <{/if}>
						   </td>
						<td><{if $ac_info.customer_name==''}><{if $ac_info.status ==1}>未支付<{else}>未预约<{/if}><{else}><{$ac_info.customer_name}><{/if}><{if $ac_info.source ==2}>&nbsp;<font color="#FF0000">(家属)</font><{/if}></td>
						<td>¥<{$ac_info.order_price*$ac_info.goods_num}></td>
						<td><{$ac_info.order_time}></td>
						<td>
							<{if $ac_info.status ==1}><font color="#FF0000"> 未支付</font><{/if}>
				            <{if $ac_info.status ==2}>已支付<{/if}>
				            <{if $ac_info.status ==3}><font color=#0000FF>已支付</font><{/if}>
				            <{if $ac_info.status ==4}><font color=#990066>已完成</font><{/if}>
				            <{if $ac_info.status ==5}><font color=#ff0000><font color="#993300">已退款</font></font><{/if}>
				            <{if $ac_info.status ==6}><font color=#ff0000><font color="#993300">已取消</font></font><{/if}>
                            <{if $ac_info.status ==7}><font color=#990066>等待收货</font><{/if}>
                        </td>
						<td class="option">

						<{if $ac_info.so_type != 2}>
						<a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a><br />
						<{else}>
							<{if $ac_info.status ==2}><a href="<{$__URL__}>orderinfo&orderid=<{$ac_info.order_id}>" class="blue">订单详情</a><{/if}>
						<{/if}>

						<{if $ac_info.status ==1}>
								 <{if $ac_info.guoqi == 0}>
                                                                 <a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td">立即支付</a>
																 <br><a href="###" onclick="cancle_order('<{$ac_info.order_id}>');" class="blue">取消</a>
								     <!--<{if $ac_info.payment_id == 0}>
									 <a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td" target="_blank">立即支付</a>
									 <{else}>
                                     <a href="<{$ac_info.payment_code}>" class="btn_org_td" target="_blank">立即支付</a>
									 <{/if}>-->
                                 <{elseif $ac_info.guoqi == 1}>
                                 	项目已过期
                                 <{else}>
                                 	套餐已过期
                                <{/if}>
								<br />
						<{/if}>
                        <{if $ac_info.status ==2}>
							<{if $ac_info.source ==1}>
									<{if $ac_info.guoqi == 0}>
										<{if $user_lizhi == 2}>已离职
										<{else}>
	                                    	<{if $ac_info.so_type != 2 }><a href="<{$__URL__}>reservation_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a><{/if}>
	                                    <{/if}>
	                                <{elseif $ac_info.guoqi == 1}>
	                                	项目已过期
	                                <{else}>
	                                	套餐已过期
	                                <{/if}>


							<{/if}>
							<{if $ac_info.source ==2}>

									<{if $ac_info.guoqi == 0}>
                                    	<{if $ac_info.so_type != 2 }><a href="<{$__URL__}>family_1&orderid=<{$ac_info.order_id}>" class="btn_green_td">立即预约</a><{/if}>
                                   <{elseif $ac_info.guoqi == 1}>
                                   	项目已过期
                                   <{else}>
                                   	套餐已过期
                                   <{/if}>
							<{/if}>
						<{/if}>

                        <!-- <{if $ac_info.status ==3}><a href="<{$__URL__}>editappend&orderid=<{$ac_info.order_id}>" class="btn_green_td">我要改约</a><{/if}>	 -->					</td>
					</tr>
				</tbody>
                <{/if}>
				<{/foreach}>
			<{else}>
                     <tbody><tr ><td bgColor=#ffffff colspan="7" height="30px" >&nbsp;&nbsp;暂无相应订单！</td></tr></tbody>
	         <{/if}>
			</table>
            <{/if}>
            <!-- /洗牙订单列表 -->


             <!-- 健康评估 -->
           <{*if isset($userinfo.user_gh) && $userinfo.user_enterprise_code=='MSD' && in_array($userinfo.user_gh, array('ET21014') )  *}>
           <{if isset($userinfo.user_gh) && $userinfo.user_enterprise_code=='MSD'}>
			<table class="com_table  mb10">
				<thead>
                     <tr>
						<th width="39" colspan=8 style="text-align: left;padding-left:15px">健康评估</th>
					</tr>
					<tr>
						<th width="39">&nbsp;</th>
						<th width="70">订单号</th>
						<th width="140px">套餐项目</th>
						<th width="90">订单金额</th>
						<th width="120px">下单时间</th>
						<th width="80px">状态</th>
						<th>操作</th>
					</tr>
				</thead>

				<{if $info|@count neq 0}>
				<{foreach from=$info item=ac_info}>
                <{if $ac_info.so_type==7}>
				<tbody>
					<tr>
						<td><{if $ac_info.status == 1}><input type="checkbox" name="checkbox_value[]" value="<{$ac_info.order_id}>" checked="checked"/><{/if}></td>
						<td><{$ac_info.order_id}></td>
						<td>
						    <a href="/jkpg" target="_blank"><{$ac_info.product.product_name}></a>
						</td>
						<td>¥<{$ac_info.order_price*$ac_info.goods_num}></td>
						<td><{$ac_info.order_time}></td>
						<td>
							<{if $ac_info.status ==1}><font color="#FF0000"> 未支付</font><{/if}>
				            <{if $ac_info.status ==2}>已支付<{/if}>
				            <{if $ac_info.status ==3}><font color=#0000FF>已支付</font><{/if}>
				            <{if $ac_info.status ==4}><font color=#990066>已完成</font><{/if}>
				            <{if $ac_info.status ==5}><font color=#ff0000><font color="#993300">已退款</font></font><{/if}>
				            <{if $ac_info.status ==6}><font color=#ff0000><font color="#993300">已取消</font></font><{/if}>
                        </td>
						<td class="option">

						<{if $ac_info.status ==1}>
							<{if $ac_info.guoqi == 0}>
                                    <a href="###" onclick="cancle_order('<{$ac_info.order_id}>');" class="blue">取消</a>
								     <!--<{if $ac_info.payment_id == 0}>
									 <a href="<{$__URL__}>pay&id=<{$ac_info.order_id}>" class="btn_org_td" target="_blank">立即支付</a>
									 <{else}>
                                     <a href="<{$ac_info.payment_code}>" class="btn_org_td" target="_blank">立即支付</a>
									 <{/if}>-->
                                 <{elseif $ac_info.guoqi == 1}>
                                 	项目已过期
                                 <{else}>
                                 	套餐已过期
                                <{/if}>
								<br />
						<{/if}>
                        <{if $ac_info.status ==2}>
							<{if $ac_info.source ==1}>
									<{if $ac_info.guoqi == 0}>
										<{if $user_lizhi == 2}>已离职
										<{else}>
	                                    	已支付
	                                    <{/if}>
	                                <{elseif $ac_info.guoqi == 1}>
	                                	项目已过期
	                                <{else}>
	                                	套餐已过期
	                                <{/if}>


							<{/if}>

						<{/if}>

                        <!-- <{if $ac_info.status ==3}><a href="<{$__URL__}>editappend&orderid=<{$ac_info.order_id}>" class="btn_green_td">我要改约</a><{/if}>	 -->					</td>
					</tr>
				</tbody>
                <{/if}>
				<{/foreach}>
			<{else}>
                     <tbody><tr ><td bgColor=#ffffff colspan="7" height="30px" >&nbsp;&nbsp;暂无相应订单！</td></tr></tbody>
	         <{/if}>
			</table>
            <{/if}>
            <!-- /健康评估 -->

<table width="100%" border="0">
  <tr>
    <td><div align="right" id="pcc"><font size="+1">总金额：¥<{$price}></font></div>
	</td>
  </tr>
</table><table width="100%" border="0">
  <tr>
    <td><div align="center"><a href="<{$__URL__}>ownexpense" class="blue" target="_self"><img src="templates/images/buy.jpg" ></a>&nbsp;&nbsp;&nbsp;<span id="paygo"><a href="###"  onClick="submit_payoff()" class="blue" target="_self"><img src="templates/images/go.jpg"></a></span>
      <input name="orderlist" type="hidden" id="orderlist" value="<{$olist}>">
	  <input name="act" type="hidden" id="act" value="family">
	  <input name="js" type="hidden" id="js" value="2">
      <input name="totalprice" type="hidden" id="totalprice" value="<{$price}>">
    </div></td>
  </tr>
</table>
		</div>
	</div>
</div>
</FORM>
<{include file="../templates/$newtpl/foot.html"}>

<!--脚本如下-->
<script src="templates/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="templates/js/jquery.switchable2.min.js" type="text/javascript"></script>
<script src="templates/js/global.js" type="text/javascript"></script>

<script type="text/javascript">

	$('#slideBox .log_box').switchable({
		triggers: $('#slideBox .tab li a'),
		panels: '.tab_con',
		triggerType: 'click'
	});


</script>

</body>
</html>